package com.example.mask.maskmobilesshop.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 商品库存
 * 
 * @ClassName: ProductStock
 * @author: Xlh
 * @date 2017年2月10日 下午4:59:18
 */
@TableName(value = "t_product_stock")
public class ProductStock implements Serializable {
	@TableField(exist = false)
	private static final long serialVersionUID = 7661065856635666008L;

	/** 主键ID **/
	@TableId(type = IdType.AUTO, value = "id")
	private Long id;

	/** 库存 **/
	@TableField(value = "stock")
	private Integer stock;

	/** 价格 **/
	@TableField(value = "price")
	private BigDecimal price;

	/** SKU **/
	@TableField(value = "sku_no")
	private String skuNo;
	
	/**颜色编号**/
	@TableField(value = "color_no")
	private String colorNo;
	
	/**尺码编号**/
	@TableField(value = "size_no")
	private String sizeNo;
	
	@TableField(exist = false)
	private String colorStr;
	
	@TableField(exist = false)
	private String sizeStr;

	/** 商品ID **/
	@TableField(value = "product_id")
	private Long productId;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public Long getProductId() {
		return productId;
	}

	public void setProductId(Long productId) {
		this.productId = productId;
	}

	public Integer getStock() {
		return stock;
	}

	public void setStock(Integer stock) {
		this.stock = stock;
	}

	public String getSkuNo() {
		return skuNo;
	}

	public void setSkuNo(String skuNo) {
		this.skuNo = skuNo;
	}

	public String getColorNo() {
		return colorNo;
	}

	public void setColorNo(String colorNo) {
		this.colorNo = colorNo;
	}

	public String getSizeNo() {
		return sizeNo;
	}

	public void setSizeNo(String sizeNo) {
		this.sizeNo = sizeNo;
	}

	public String getColorStr() {
		return colorStr;
	}

	public void setColorStr(String colorStr) {
		this.colorStr = colorStr;
	}

	public String getSizeStr() {
		return sizeStr;
	}

	public void setSizeStr(String sizeStr) {
		this.sizeStr = sizeStr;
	}

}
